import driver as driver
import length as length
import time

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys

driver = webdriver.Chrome()

# Navigate to the website with registration form
driver.get("https://the-internet.herokuapp.com/dynamic_content")

# 得到对应链接的xpath，以确定唯一链接
driver.find_element(By.XPATH,'//*[@id="content"]/div/p[2]/a').click()

#页面停等5秒
time.sleep(5)